<%@ page language="java" pageEncoding="UTF-8"  import="java.util.*,com.knife.tools.TreeUtils"%>
<%@include file="/include/manage/checkUser.jsp" %>
<%
try{
	if(user!=null){
		String nodeId = request.getParameter("id");
		nodeId = nodeId == null ? "0":nodeId.trim();
		int pid=Integer.parseInt(nodeId);
		String jsonStr = TreeUtils.getUserTypeJson(pid);
		response.setContentType("text/json;charset=utf-8");
		response.getWriter().write(jsonStr);
	}
}catch(Exception e){
}
%>